import request from "@/utils/request";

// 查询设施（垃圾桶）告警实施列表
export function listFacRealtime(query) {
  return request({
    url: "/alarm/facRealtime/list",
    method: "get",
    params: query
  });
}

// 查询设施（垃圾桶）告警实施详细
export function getFacRealtime(alarmId) {
  return request({
    url: "/alarm/facRealtime/" + alarmId,
    method: "get"
  });
}

// 新增设施（垃圾桶）告警实施
export function addFacRealtime(data) {
  return request({
    url: "/alarm/facRealtime",
    method: "post",
    data: data
  });
}

// 修改设施（垃圾桶）告警实施
export function updateFacRealtime(data) {
  return request({
    url: "/alarm/facRealtime",
    method: "put",
    data: data
  });
}

// 删除设施（垃圾桶）告警实施
export function delFacRealtime(alarmId) {
  return request({
    url: "/alarm/facRealtime/" + alarmId,
    method: "delete"
  });
}

// 导出设施（垃圾桶）告警实施
export function exportFacRealtime(query) {
  return request({
    url: "/alarm/facRealtime/export",
    method: "get",
    params: query
  });
}
